package com.yiqihui.my_shiro_jwt_redis.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @program: my_shiro_jwt_redis
 * @description:
 * @author: @Dog_Elder
 * @create: 2020-11-10 09:14
 **/
public class JWTToken  implements AuthenticationToken {
    private String token;

    public JWTToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
